﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using SoucreGame.GLO;
namespace SoucreGame.DTO
{
    class CInfoTruLinh: CInfoNhanVat
    {
         public CInfoTruLinh(ContentManager conten,GameTime gameTime,SpriteBatch sp):base(conten,gameTime,sp)
        {        
                LoadDuLieuNhanVat();    
        }
         public CInfoTruLinh()
             : base()
        {
            LoadDuLieuNhanVat();
        }
        private void LoadDuLieuNhanVat()
        {
            this.Ten = "Nha linh";
            this.Mau = 200;
            this.TocDoTanCong = 200;
            this.ToaDoHienTai = new Vector2(600, 300);
            this.PhamViTC = 6;
            this.SucTanCong = 6;
            this.SucPhongThu = 3;
            this.TrangThai = Trangthai.song;
            this.SttAnhBatDau = 1;
            this.SoLuongAnhChet = 16;
            this.SoLuongAnhDungYen = 1;
            this.ChuoiDungYen = "Dung yen ";
            this.ChuoiChet = "Chet ";
            if (this.Content != null)
            {
                this.ViTriAnh = Content.Load<Dictionary<string, Rectangle>>("Tower//Nha linh//xml");
                this.AnhNhanVat = Content.Load<Texture2D>("Tower//Nha linh//Nha linh");
            }
        }
    }
}
